1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
import * as React from "react"
export const dynamic = "force-dynamic"
import { Skeleton } from "@/components/ui/skeleton"
import { DataTableSkeleton } from "@/components/data-table/data-table-skeleton"
import { Shell } from "@/components/shell"
import { fetchVendorRegularRegistrations } from "@/lib/vendor-regular-registrations/service"
import { VendorRegularRegistrationsTable } from "@/lib/vendor-regular-registrations/table/vendor-regular-registrations-table"
import { InformationButton } from "@/components/information/information-button"
import { useTranslation } from "@/i18n"
export default async function VendorRegularRegistrationsPage(props: {params: Promise<{lng: string}>}) {
const promises = Promise.all([
fetchVendorRegularRegistrations(),
])
const {lng} = await props.params
const {t} = await useTranslation(lng, 'menu')
return (
<Shell className="gap-2">
<div className="flex items-center justify-between space-y-2">
<div className="flex items-center justify-between space-y-2">
<div>
<div className="flex items-center gap-2">
<h2 className="text-2xl font-bold tracking-tight">
{t('menu.vendor_management.vendor_regular_registrations')}
</h2>
<InformationButton pagePath="evcp/vendor-regular-registrations" />
</div>
{/* <p className="text-muted-foreground">
정규업체 등록 현황을 확인하세요. 구매담당자가 정규업체 등록을 위한 현황 조회 및 협력업체에게 누락자료 요청하는 화면입니다.
</p> */}
</div>
</div>
</div>
<React.Suspense fallback={<Skeleton className="h-7 w-52" />}>
{/* 담당부서/담당자 필터는 테이블 내부 필터로 처리 */}
</React.Suspense>
<React.Suspense
fallback={
<DataTableSkeleton
columnCount={13}
searchableColumnCount={1}
filterableColumnCount={3}
cellWidths={["10rem", "8rem", "12rem", "20rem", "15rem", "10rem", "10rem", "15rem", "12rem", "12rem", "12rem", "20rem", "8rem"]}
shrinkZero
/>
}
>
<VendorRegularRegistrationsTable promises={promises} />
</React.Suspense>
</Shell>
)
}
|